import React from 'react'

import { Button} from 'antd'
import { WeaLocaleProvider } from "ecCom";
const getLabel = WeaLocaleProvider.getLabel;

export default function CommentBar(props) {
    const { submitComment, cancelComment, className = "", checked, ...rest} = props
    return (
        <div className={"g-comment-bar " + className} {...rest}>
            <Button ecId={`${this && this.props && this.props.ecId || ''}_Button@dxxc5g`} onClick={cancelComment} type="ghost" className="g-wcb-cancel">{getLabel(31129,"取消")}</Button>
            <Button ecId={`${this && this.props && this.props.ecId || ''}_Button@4k0qt4`} onClick={submitComment} type="primary" className="g-wcb-submit">{getLabel(675,"评论")}</Button>
        </div>
    )
}
